package com.code.ddbond.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.code.ddbond.vo.RegisterVo;
import com.code.ddbond.pojo.UserInfo;

public interface UserInfoService extends IService<UserInfo>
{
    boolean register(RegisterVo registerVo);
    int login(String loginName, String password);
    void updateUserById(UserInfo userInfo);
    UserInfo getUserInfoByName(String username);
    boolean checkEmailForPasswordRecovery(String email);
    void resetPassword(String email, String newPassword);
    UserInfo getUserByLoginName(String loginName);
    boolean checkLoginnameExists(String loginname);
}
